﻿using AdminApiTemplate.Infrastructures;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations.Schema;

namespace Promote.Infrastructures.Domains
{
    /// <summary>
    /// 权限
    /// </summary>
    [Description("权限")]
    [Table("Permission")]
    public class Permission: TableModelBase
    {
        /// <summary>
        /// 名称
        /// </summary>
        [Description("名称")]
        public string Name { get; set; }

        /// <summary>
        /// 图标
        /// </summary>
        [Description("图标")]
        public string Icon { get; set; }

        /// <summary>
        /// 是否是菜单
        /// </summary>
        [Description("是否是菜单")]
        public bool? IsMenu { get; set; }

        /// <summary>
        /// 上级Id
        /// </summary>
        [Description("")]
        public long? ParentId { get; set; }

        /// <summary>
        /// 权限编码
        /// </summary>
        [Description("权限编码")]
        public string PermissionCode { get; set; }

        /// <summary>
        /// 链接
        /// </summary>
        [Description("链接")]
        public string Url { get; set; }
    }
}
